import { request } from '@umijs/max';

// 登录校验
export async function ssoLogin() {
  return request(
    '/cas/authen/ssoLogin.jsonp?callback=ssoLogin_JSONPMethod&serviceUrl=https%3A%2F%2Fchdstore.web.sdo.com%2FUser%2FLogin&appId=991000350&areaId=1&productVersion=v5&frameType=3&locale=zh_CN&version=21&tag=20&authenSource=2&productId=2&scene=login&usage=aliCode&_=1720778082647',
    {
      method: 'GET',
    },
  );
}

// 轮询
export async function codeKeyLogin() {
  return request(
    '/cas/authen/codeKeyLogin.jsonp?callback=codeKeyLogin_JSONPMethod&appId=991000350&areaId=1&code=300&serviceUrl=https%3A%2F%2Fchdstore.web.sdo.com%2FUser%2FLogin&productId=2&productVersion=3.1.0&authenSource=2&_=1721047562635',
    {
      method: 'GET',
    },
  );
}
